/**
 * 获取文件的 Blob URL
 * @param fileUrl 文件URL
 * @returns Promise<string> Blob URL
 */
export const getBlobUrl = async (fileUrl: string): Promise<string> => {
  try {
    const response = await fetch(fileUrl);
    const blob = await response.blob();
    return URL.createObjectURL(blob);
  } catch (error) {
    console.error('Error getting blob URL:', error);
    return '';
  }
}; 